// 删除 回收站 日记 接口

const db = require('../db')
exports.delete = (req, res) => {
  const { id } = req.query
  console.log(id)
  const delArticleSql = `delete from delete_article where id="${id}"`
  db.query(delArticleSql, (err, data) => {
    if (err) return console.log('delArticleSql语句错误' + err)
    return res.send({ status: 201, mes: '删除所有回收站日记成功' })
  })
}
